﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace Hangout.Services.Core.Location
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "UserLocationService" in code, svc and config file together.
    // NOTE: In order to launch WCF Test Client for testing this service, please select UserLocationService.svc or UserLocationService.svc.cs at the Solution Explorer and start debugging.
    public class UserLocationService : IUserLocationService
    {

        Web.Services.Location.UserLocation wrapper = new Web.Services.Location.UserLocation();

        public void UpdateUserLocation(Web.Services.Objects.Location location, string accessToken)
        {
            wrapper.UpdateUserLocation(location, accessToken);
        }


        public List<Web.Core.Location.UserLocationData> GetNearestUsers(int userid, int count,string accesstoken)
        {
            return wrapper.GetNearestUsers(userid, count, accesstoken);
        }

        public Web.Services.Objects.Location GetLocation(int locationId, string accessToken)
        {
            return wrapper.GetLocation(locationId, accessToken);
        }


    }
}
